/************ write ***************************************/
//patch
//#define ERR_WRITE_PATCH_			        1
//#define ERR_WRITE_PATCH_			        2
#define ERR_WRITE_PATCH_FILTER_READY_PERSON     3
#define ERR_WRITE_PATCH_INTELLIGENCE_KILLER_COEF2 4
//#define ERR_WRITE_PATCH_		        5
//#define ERR_WRITE_PATCH_	        6
//#define ERR_WRITE_PATCH_			        7
//#define ERR_WRITE_PATCH_     8
//#define ERR_WRITE_PATCH_      9
#define ERR_WRITE_PATCH_MIN_DURABILITY          10
#define ERR_WRITE_PATCH_HARBOR_KILLER           11
#define ERR_WRITE_PATCH_BUILDING_KILLER         12
#define ERR_WRITE_PATCH_SIEGE_EXPERIENCE        13
#define ERR_WRITE_PATCH_TREASURE_VALUE          14
#define ERR_WRITE_PATCH_ALIENATE_EXPERIENCE     15
#define ERR_WRITE_PATCH_INSPIRE_EXPERIENCE      16
#define ERR_WRITE_PATCH_CHEAT_EXPERIENCE        17
#define ERR_WRITE_PATCH_DISORDER_EXPERIENCE     18
#define ERR_WRITE_PATCH_ROB_MONEY               19
#define ERR_WRITE_PATCH_PERSON_JUDGEMENT        20
#define ERR_WRITE_PATCH_JOURNEY_EXPENSE         21
#define ERR_WRITE_PATCH_SUB_JOURNEY_EXPENSE     22
#define ERR_WRITE_PATCH_ENABLE_DRAFT            23
#define ERR_WRITE_PATCH_DEFENCE_HORSE_WIMBLE    24
#define ERR_WRITE_PATCH_INTELLIGENCE_KILLER_COEF 25
#define ERR_WRITE_PATCH_MOVE_AGAIN              26
#define ERR_WRITE_PATCH_GARBAGE_PERSON          27
#define ERR_WRITE_PATCH_NOT_ALIENATE_GARBAGE    28
#define ERR_WRITE_PATCH_WISDOM_ANTI_BLACK_ART   29
#define ERR_WRITE_PATCH_DISPATCH_TROOP          30
//#define ERR_WRITE_PATCH_       31
//#define ERR_WRITE_PATCH_            32
#define ERR_WRITE_PATCH_WISDOM_EFFECTIVE_FLAG   33
#define ERR_WRITE_PATCH_MAX_FORCE_FOOD          34
#define ERR_WRITE_PATCH_MIN_DISPATCH_SOLDIER    35
#define ERR_WRITE_PATCH_OFFICIAL_LOYATY         36
#define ERR_WRITE_PATCH_FULL_PRIZE              37
#define ERR_WRITE_PATCH_LOWER_BUILD_EXPENSE     38
//#define ERR_WRITE_PATCH_          39
//#define ERR_WRITE_PATCH_     40
//#define ERR_WRITE_PATCH_             41
//#define ERR_WRITE_PATCH_ 42
#define ERR_WRITE_PATCH_NOT_APPROACH_NEAR_TROOP 43
#define ERR_WRITE_PATCH_MIN_BUILDING_PERSON     44
#define ERR_WRITE_PATCH_GET_CITY_MAX_PEOPLE_HEART 45
#define ERR_WRITE_PATCH_SAME_FORCE_DISPATCH     46
#define ERR_WRITE_PATCH_TROOP_SIEGE_POWER       47
#define ERR_WRITE_PATCH_BATTLE_DISABLE_GOSSIP   48
#define ERR_WRITE_PATCH_LEARN_TO_PHASE          49
//#define ERR_WRITE_PATCH_     50
#define ERR_WRITE_PATCH_TEST_INTELLIGENCE_PERSON 51
#define ERR_WRITE_PATCH_BUILD_REAL_GOAL         52
#define ERR_WRITE_PATCH_SAVE_ATTACK_SOURCE_BUILDING 53
#define ERR_WRITE_PATCH_SET_FORCE_GOAL          54
#define ERR_WRITE_PATCH_READ_SCENE_INDEX        55
#define ERR_WRITE_PATCH_TEST_DARK_FLAG          56
//multi search
#define ERR_WRITE_PATCH_SEARCH_SELECT           70
#define ERR_WRITE_PATCH_SEARCH_STOP             71
#define ERR_WRITE_PATCH_SEARCH_PERFORM          72
#define ERR_WRITE_MULTI_SELECT_WINDOW           73
#define ERR_WRITE_INVITE_MULTI_SELECT           74
#define ERR_WRITE_SAVE_MULTI_SELECT             75
#define ERR_WRITE_ROB_MULTI_SELECT              76
#define ERR_WRITE_BURN_MULTI_SELECT             77
#define ERR_WRITE_ALIENATE_MULTI_SELECT         78
#define ERR_WRITE_FALSE_MULTI_SELECT            79
#define ERR_WRITE_DISORDER_MULTI_SELECT         80
#define ERR_WRITE_SORT_MULTI_SELECT_PERSON      82
#define ERR_WRITE_MULTI_SELECT_PERSON_STATE     83
#define ERR_WRITE_PERFORM_PERSON                84
//counselor advise
#define ERR_WRITE_COUNSELOR_ADVISE              85
#define ERR_WRITE_SEARCH_COUNSELOR_ADVISE       86
#define ERR_WRITE_INVITE_COUNSELOR_ADVISE       87
#define ERR_WRITE_FALSE_COUNSELOR_ADVISE        88
#define ERR_WRITE_DISORDER_COUNSELOR_ADVISE     89
#define ERR_WRITE_SAVE_COUNSELOR_ADVISE         90
#define ERR_WRITE_INSPIRE_COUNSELOR_ADVISE      91
#define ERR_WRITE_ROB_COUNSELOR_ADVISE          92
#define ERR_WRITE_BURN_COUNSELOR_ADVISE         93
#define ERR_WRITE_ALIENATE_COUNSELOR_ADVISE     94

//thunk
//#define ERR_WRITE_THUNK_			        100
//#define ERR_WRITE_THUNK_			        101
#define ERR_WRITE_THUNK_FILTER_READY_PERSON     102
#define ERR_WRITE_THUNK_INTELLIGENCE_KILLER_COEF2 103
//#define ERR_WRITE_THUNK_		        104
//#define ERR_WRITE_THUNK_   	    105
//#define ERR_WRITE_THUNK_			        106
//#define ERR_WRITE_THUNK_     107
//#define ERR_WRITE_THUNK_      108
#define ERR_WRITE_THUNK_MIN_DURABILITY          109
#define ERR_WRITE_THUNK_HARBOR_KILLER           110
#define ERR_WRITE_THUNK_BUILDING_KILLER         111
#define ERR_WRITE_THUNK_SIEGE_EXPERIENCE        112
#define ERR_WRITE_THUNK_SAVE_ATTACK_SOURCE_BUILDING 113
#define ERR_WRITE_THUNK_TREASURE_VALUE          114
#define ERR_WRITE_THUNK_ALIENATE_EXPERIENCE     115
#define ERR_WRITE_THUNK_GOSSIP_EXPERIENCE       116
#define ERR_WRITE_THUNK_INSPIRE_EXPERIENCE      117
#define ERR_WRITE_THUNK_CHEAT_EXPERIENCE        118
#define ERR_WRITE_THUNK_DISORDER_EXPERIENCE     119
#define ERR_WRITE_THUNK_ROB_MONEY               120
#define ERR_WRITE_THUNK_PERSON_JUDGEMENT        121
#define ERR_WRITE_THUNK_JOURNEY_EXPENSE         122
#define ERR_WRITE_THUNK_SUB_JOURNEY_EXPENSE     123
#define ERR_WRITE_THUNK_ENABLE_DRAFT            124
#define ERR_WRITE_THUNK_DEFENCE_HORSE_WIMBLE    125
#define ERR_WRITE_THUNK_INTELLIGENCE_KILLER_COEF 126                             
#define ERR_WRITE_THUNK_MOVE_AGAIN              127
#define ERR_WRITE_THUNK_NOT_ALIENATE_GARBAGE    128
#define ERR_WRITE_THUNK_WISDOM_ANTI_BLACK_ART   129
#define ERR_WRITE_THUNK_DISPATCH_TROOP          130
//#define ERR_WRITE_THUNK_            131
#define ERR_WRITE_THUNK_WISDOM_EFFECTIVE_FLAG   132
#define ERR_WRITE_THUNK_MAX_FORCE_FOOD          133
#define ERR_WRITE_THUNK_MIN_DISPATCH_SOLDIER    134
#define ERR_WRITE_THUNK_OFFICIAL_LOYATY         135
#define ERR_WRITE_THUNK_FULL_PRIZE              136
#define ERR_WRITE_THUNK_LOWER_BUILD_EXPENSE     137
//#define ERR_WRITE_THUNK_          138
//#define ERR_WRITE_THUNK_     139
//#define ERR_WRITE_THUNK_             140
//#define ERR_WRITE_THUNK_ 141
#define ERR_WRITE_THUNK_NOT_APPROACH_NEAR_TROOP 142
#define ERR_WRITE_THUNK_MIN_BUILDING_PERSON     143
#define ERR_WRITE_THUNK_GET_CITY_MAX_PEOPLE_HEART 144
#define ERR_WRITE_THUNK_SAME_FORCE_DISPATCH     145
#define ERR_WRITE_THUNK_TROOP_SIEGE_POWER       146
#define ERR_WRITE_THUNK_BATTLE_DISABLE_GOSSIP   147
#define ERR_WRITE_THUNK_BUILD_REAL_GOAL         148
#define ERR_WRITE_THUNK_SET_FORCE_GOAL          149
#define ERR_WRITE_THUNK_LEARN_TO_PHASE          150

#define ERR_WRITE_THUNK_READ_SCENE_INDEX        155
#define ERR_WRITE_THUNK_TEST_DARK_FLAG          156
//multi search
#define ERR_WRITE_THUNK_SEARCH_SELECT           170
#define ERR_WRITE_THUNK_SEARCH_STOP             171
#define ERR_WRITE_THUNK_SEARCH_PERFORM          172
#define ERR_WRITE_THUNK_INVITE_PERFORM          173
#define ERR_WRITE_THUNK_INVITE_MULTI_SELECT     174
#define ERR_WRITE_THUNK_SAVE_MULTI_SELECT       175
#define ERR_WRITE_THUNK_ROB_MULTI_SELECT        176
#define ERR_WRITE_THUNK_BURN_MULTI_SELECT       177
#define ERR_WRITE_THUNK_ALIENATE_MULTI_SELECT   178
#define ERR_WRITE_THUNK_FALSE_MULTI_SELECT      179
#define ERR_WRITE_THUNK_DISORDER_MULTI_SELECT   180
//counselor advise
#define ERR_WRITE_THUNK_SEARCH_COUNSELOR_ADVISE 185
#define ERR_WRITE_THUNK_INVITE_COUNSELOR_ADVISE 186
#define ERR_WRITE_THUNK_FALSE_COUNSELOR_ADVISE  187
#define ERR_WRITE_THUNK_DISORDER_COUNSELOR_ADVISE 188
#define ERR_WRITE_THUNK_SAVE_COUNSELOR_ADVISE   189
#define ERR_WRITE_THUNK_INSPIRE_COUNSELOR_ADVISE 190
#define ERR_WRITE_THUNK_ROB_COUNSELOR_ADVISE    191
#define ERR_WRITE_THUNK_BURN_COUNSELOR_ADVISE   192
#define ERR_WRITE_THUNK_ALIENATE_COUNSELOR_ADVISE 193

//message
#define ERR_WRITE_HWND_MESSAGE			        200
#define ERR_WRITE_PATCH_SEND_MESSAGE            201
#define ERR_WRITE_PATCH_UPDATE_END		        202
#define ERR_WRITE_THUNK_UPDATE_END_MAIN	        203
#define ERR_WRITE_THUNK_UPDATE_END_PLAY	        204
#define ERR_WRITE_PATCH_CHANGE_INTERFACE        205
#define ERR_WRITE_THUNK_CHANGE_INTERFACE        206

//null_thunk
#define ERR_WRITE_THUNK_BUILD_MIN_SOLDIER       230
#define ERR_WRITE_THUNK_ELEPHANT_ANTI_KILLER    231
#define ERR_WRITE_THUNK_DEFENCE_ARRAY_SCALE     232
#define ERR_WRITE_THUNK_DEFENCE_ARRAY_WIMBLE    233
#define ERR_WRITE_THUNK_DEFENCE_ARRAY_ARROW     234
#define ERR_WRITE_THUNK_LEAGUE_LOW_PRESTIGE     235
#define ERR_WRITE_THUNK_TRANSPORT_GOAL_CONDITION 236
#define ERR_WRITE_THUNK_INIT_MATCH_STEP         237
#define ERR_READ_THUNK_TRANSPORT_MATCH          238
#define ERR_WRITE_THUNK_TRANSPORT_MATCH         239
#define ERR_WRITE_THUNK_GET_PERSON_FRIENDSHIP   240
#define ERR_WRITE_THUNK_SAVE_TROOP_DISPLAY_OBJECT 241
#define ERR_WRITE_THUNK_GOOSE_KILLER_LINKAGE    242

//key process
#define ERR_WRITE_PATCH_MESSAGE_ENTRY           250
#define ERR_WRITE_THUNK_MESSAGE_ENTRY           251
#define ERR_WRITE_PATCH_KEY_SEARCH              252
#define ERR_WRITE_PATCH_KEY_GO                  253
#define ERR_WRITE_PATCH_GO_FAST                 254
#define ERR_WRITE_THUNK_GO_FAST                 255
#define ERR_WRITE_GO_FAST_FLAG                  256
#define ERR_WRITE_GO_FAST_COUNTER               257
#define ERR_WRITE_PATCH_GO_NODISPLAY            258
#define ERR_WRITE_THUNK_GO_NODISPLAY            259
#define ERR_WRITE_PATCH_MOUSE_CLICK             260
#define ERR_WRITE_PATCH_TIMER_PROCESS           261
#define ERR_WRITE_PATCH_KEY_BIG                 262
#define ERR_WRITE_PATCH_KEY_SMALL               263
#define ERR_WRITE_PATCH_KEY_INFO                264
#define ERR_WRITE_INFO_FAST_FLAG                265
#define ERR_WRITE_INFO_FAST_COUNTER             266
#define ERR_WRITE_PATCH_FLAG_COUNTER_PROCESS    267
#define ERR_WRITE_BEFORE_GO_FLAG                268
#define ERR_WRITE_KEY_AWARD                     269
#define ERR_WRITE_DO_AWARD                      270
#define ERR_WRITE_AWARD_FAST_FLAG               271
#define ERR_WRITE_AWARD_FAST_COUNTER            272
#define ERR_WRITE_AWARDABLE_PERSON_NUMBER       273

//code
#define ERR_WRITE_CUT_POINT				        300
#define ERR_WRITE_BUILD_MIN_BUILDING			301
#define ERR_WRITE_TRAIN_NUM			            302
#define ERR_WRITE_DURABILITY_EFFECT             303
#define ERR_WRITE_HARBOR_KILLER_FUNCTION        304
#define ERR_WRITE_TOWN_KILLER_FUNCTION          305
#define ERR_WRITE_BATTLE_EXPERIENCE             306
#define ERR_WRITE_WATER_EXPERIENCE              307
#define ERR_WRITE_BURN_EXPERIENCE               308
#define ERR_WRITE_ROB_EXPERIENCE                309
#define ERR_WRITE_REINFORCE_EXPERIENCE          310
#define ERR_WRITE_TRAIN_EXPERIENCE              311
#define ERR_WRITE_REPAIR_EXPERIENCE             312
#define ERR_WRITE_CULTIVATE_MIN_POLITICS        313
#define ERR_WRITE_DISPATCH_ARRAY                314
#define ERR_WRITE_DISPATCH_SHIP                 315
#define ERR_WRITE_MUNICIPAL_FORCE_DRAFT         316
#define ERR_WRITE_RETREAT_MIN_VIGOUR            317
#define ERR_WRITE_CHAOS_DAY                     318
#define ERR_WRITE_MAX_BASIC_ABILITY             319
#define ERR_WRITE_LOWER_TRICK                   320
#define ERR_WRITE_WISDOM_RESIST_TRICK           321
#define ERR_WRITE_RESIST_TRAP                   322
#define ERR_WRITE_LOWER_TRAP                    323
#define ERR_WRITE_ANTI_ATTACK_MIN_SOLDIER       324
#define ERR_WRITE_ALIENATE_INTELLIGENCE         325
#define ERR_WRITE_GOSSIP_INTELLIGENCE           326
#define ERR_WRITE_INSPIRE_INTELLIGENCE          327
#define ERR_WRITE_CHEAT_INTELLIGENCE            328
#define ERR_WRITE_DISORDER_INTELLIGENCE         329
#define ERR_WRITE_BUILD_EXPERIENCE              330
#define ERR_WRITE_ANTI_ATTACK_BARBARISM         331
#define ERR_WRITE_ANTI_ATTACK_ASSISTANT         332
#define ERR_WRITE_ALIENATE_FORCE_NAME           333
#define ERR_WRITE_ANTI_MIN_TROOP_SOLDIER        334
#define ERR_WRITE_SAVE_BASE                     335
#define ERR_WRITE_TROOP_WOUND                   336
#define ERR_WRITE_CHECK_LEAGUE_PROBABILITY      337
#define ERR_WRITE_LEAGUE_TIME                   338
#define ERR_WRITE_ALL_PERSON_DEATH              339
#define ERR_WRITE_OFFICER_BASIC_COMMAND         340
#define ERR_WRITE_OFFICER_BASIC_INT             341
#define ERR_WRITE_ADD_KILLER_PROFICIENCY        342
#define ERR_WRITE_DISABLE_ALIENATE              343
#define ERR_WRITE_ALL_PERSON_LIVE               344
#define ERR_WRITE_ALL_PERSON_DEAD               345
#define ERR_WRITE_SEARCH_MIN_POLITICS           346
#define ERR_WRITE_NPC_SEARCH_TREASURE           347
#define ERR_WRITE_FOOT_ANTI_ELEPHANT            348
#define ERR_WRITE_SOLDIER_COMMAND_KILLER_FLAG   349
#define ERR_WRITE_BUILDING_DEFENSE_COEF         350
#define ERR_WRITE_ENABLE_BARAM_ARRAY            351
#define ERR_WRITE_INSPIRE_MAX_VIGOUR            352
#define ERR_WRITE_LOAD_MAX_FOOD                 353
#define ERR_WRITE_GOSSIP_SUB_LOYALTY            354
#define ERR_WRITE_GOSSIP_NO_ALIENATE            355
#define ERR_WRITE_HOME_FORCE_DOOR               356
#define ERR_WRITE_GOAL_NULL_CITY                357
#define ERR_WRITE_NPC_ALLIE_ATTACK              358
#define ERR_WRITE_NULL_BUILDING_DANGER          359
#define ERR_WRITE_AVOID_NEAR_CITY               360
#define ERR_WRITE_SELECT_CLEVER_KILLER          361
#define ERR_WRITE_NEGLECT_CHONG_CHE             362
#define ERR_WRITE_SAME_FORCE_TROOP              363
#define ERR_WRITE_DISABLE_NPC_PLOT_FORCE        364
#define ERR_WRITE_ATTACK_IGNORE_ANTITRAP        365
#define ERR_WRITE_YEAR_DIFFERENCE               366
#define ERR_WRITE_DONATE_MAX_FOOD               367
#define ERR_WRITE_BURN_BUILDING_FOOD            368
#define ERR_WRITE_DISABLE_BURN                  369
#define ERR_WRITE_NOT_GET_PERSON_QUOTA          370
#define ERR_WRITE_AVOID_INDUCE_MAX_DAY          371
#define ERR_WRITE_ENABLE_SECOND_KILLER          372
#define ERR_WRITE_NULL_OFFICIAL_SALARY          373
#define ERR_WRITE_SUB_COUNSELLOR_JUDGE          374
#define ERR_WRITE_ADD_NPC_MONEY_FOOD            375
#define ERR_WRITE_NOT_ADD_DRAFT                 376
#define ERR_WRITE_ALIKE_KILLER_LINKAGE          377
#define ERR_WRITE_GET_TROOP_GOAL_BUG            378
#define ERR_WRITE_DECLARE_ATTACK_TROOP          379
#define ERR_WRITE_GOAL_TO_SOURCE_DAMAGE         380
#define ERR_WRITE_BAD_BROTHERS_ARRAY_END        381
#define ERR_WRITE_TROOP_FROM_BUILDING           382
#define ERR_WRITE_NOT_ATTACK_ONLY_BUILDING      383
#define ERR_WRITE_ENABLE_RELAY_DISPATCH         384
#define ERR_WRITE_FALSE_ANTI_TROOP              385
#define ERR_WRITE_DISORDER_ANTI_TROOP           386
#define ERR_WRITE_INVITE_SUB_LOYATY             387
#define ERR_WRITE_DISPATCH_SOLDIER_TO_PLAYER    388
#define ERR_WRITE_ANTI_PLAYER_LEAGUE_COEF       389
#define ERR_WRITE_COMMAND_OFFICER_END_FLAG      390
#define ERR_WRITE_INTELLIGENCE_OFFICER_END_FLAG 391
#define ERR_WRITE_MAX_EXPERIENCE                392
#define ERR_WRITE_SHOW_CELUE_KILLER             393
#define ERR_WRITE_DISABLE_SEARCH_EVENT          394
#define ERR_WRITE_KILLER_POWER_COEF             395
#define ERR_WRITE_MAX_SEARCh_ABILITY            396
#define ERR_WRITE_CHAOS_POWER_COEF              397
#define ERR_WRITE_THUNK_CHAOS_POWER_COEF        398
#define ERR_WRITE_DISABLE_SUBFORCE_TRANSPORT    399
#define ERR_WRITE_DYNAMIC_ADD_ABILITY_FLAG      400
#define ERR_WRITE_SLASH_DEAD_COEF               401
#define ERR_WRITE_SHOW_SEX_MAP                  402
#define ERR_WRITE_LVBU_ATTACK_DOOR              403
#define ERR_WRITE_WEAKEN_LONG_RANGE_KILLER_FLAG 404
#define ERR_WRITE_TROOP_GOAL_BUILDING           405
#define ERR_WRITE_INVITE_ADD_LOYATY             406
#define ERR_WRITE_YEAR_TABLE_INVALID_FLAG       407
#define ERR_WRITE_BLOCK_PROP_COEF               408
#define ERR_WRITE_TRANSPORT_GOAL_INFO           409
#define ERR_WRITE_COUNSELOR_MIN_CANDIDATE       410
#define ERR_WRITE_SUB_ROB_FOOD                  411
#define ERR_WRITE_FOG_VIEW_RANGE                412
#define ERR_WRITE_WAR_FOG_DOOR                  413
#define ERR_WRITE_NOARRAY_TO_BUILDING           414
#define ERR_WRITE_DISABLE_BURN_EXPLORER         415
#define ERR_WRITE_DISABLE_ATTACK_EXPLORER       416
#define ERR_WRITE_MASK_PERSON_WHERE             417
#define ERR_WRITE_COUNSELOR_REPORT_COEF         418
#define ERR_WRITE_NPC_ATTACK_INTENSIVE          419
#define ERR_WRITE_SEARCH_NO_RESULT              420
#define ERR_WRITE_PERSON_NUM_KILLER_PROP        421
#define ERR_WRITE_ATTACK_BUILD_FORCE            422
#define ERR_WRITE_BUILD_MAX_ARRIVE_DAY          423
#define ERR_WRITE_NULL_CITY_SUB_MUNICIPAL       424
#define ERR_WRITE_GAME_END_YEAR                 425
#define ERR_WRITE_NATURE_ATTRACT_COEF           426
#define ERR_WRITE_UPDATE_GOAL_FORCE             427
#define ERR_WRITE_UPDATE_GOAL_PROP              428
#define ERR_WRITE_NPC_AUTO_DRAFT                429
#define ERR_WRITE_FIGHT_SUB_INCOME_COEF         430
#define ERR_WRITE_LOW_DURABILITY_CHAOS          431
#define ERR_WRITE_BASIC_ABLILITY_COEF           432
#define ERR_WRITE_DISABLE_KILL_PERSON           433
#define ERR_WRITE_SEX_COEF                      434
#define ERR_WRITE_ENABLE_GO_MENU				435
#define ERR_WRITE_GENERAL_DEAD                  346
#define ERR_WRITE_MAX_CAPTIVE_COEF              347

//data on stack
#define ERR_WRITE_OFFICIAL_LOYALTY              450
#define ERR_WRITE_ATTACK_CITY_MAX_DAY           451
#define ERR_WRITE_CITY_RELATION_INFO            452
#define ERR_WRITE_PERSON_CONFIG_INFO            453
#define ERR_WRITE_CITY_CONFIG_INFO              454
#define ERR_READ_CITY_CONFIG_INFO               455
#define ERR_WRITE_KILLER_CONFIG_INFO            456
#define ERR_WRITE_ARRAY_CONFIG_INFO             457

//data in code
#define ERR_WRITE_ARRAY_CENTER_IMAGE	        480
#define ERR_WRITE_MAP_KILLER_POWER              481

//data of game
#define ERR_WRITE_PERSON_FRIENDSHIP             500
#define ERR_WRITE_ZONE_FROM_CITY                501

//other code
#define ERR_WRITE_STACK_SEARCH_PERFORM          550
#define ERR_WRITE_STACK_SEARCH_SELECT           551

/************ page ***************************************/
#define ERR_PAGE_COMMON_DATA                    600
#define ERR_PAGE_CAPTION                        601
#define ERR_PAGE_SEARCH_SELECT                  602
#define ERR_PAGE_SEARCH_PERFORM                 603
#define ERR_PAGE_SEARCH_RANGE                   604
#define ERR_PAGE_FRIENDSHIP                     605

//stack bottom
#define ERR_ALLOC_STACK_BOTTOM                  610
#define ERR_WRITE_ON_STACK_BOTTOM               611
#define ERR_WRITE_PRE_BUILDING_SOLDIER3         612
#define ERR_WRITE_CHASE_FLAG                    613
#define ERR_WRITE_THUNK_CHASE_FLAG              614
#define ERR_WRITE_THUNK_KEEP_ATTACK_FLAG        615
#define ERR_WRITE_ANTI_ATTACK_MIN_DEFENCE       616
#define ERR_WRITE_THUNK_ANTI_ATTACK_MIN_DEFENCE 617
#define ERR_WRITE_CHECK_TROOP_POS               618
#define ERR_WRITE_THUNK_CHECK_TROOP_POS         619
#define ERR_WRITE_WISDOM_PERSON                 620
#define ERR_WRITE_THUNK_WISDOM_PERSON           621
#define ERR_WRITE_THUNK_WISDOM_PERSON_ABUSE     622
#define ERR_WRITE_THUNK_WISDOM_PERSON_ATTACK_HEART 623
#define ERR_WRITE_THUNK_WISDOM_PERSON_MAGIC     624
#define ERR_WRITE_THUNK_WISDOM_PERSON_BLACK_ART 625
#define ERR_WRITE_CHECK_NEAR_TROOP              626
#define ERR_WRITE_THUNK_CHECK_NEAR_TROOP        627
#define ERR_WRITE_INSERT_NEAR_TROOP             628
#define ERR_WRITE_THUNK_INSERT_NEAR_TROOP       629
#define ERR_WRITE_THUNK_INSERT_READY_TROOP      630
#define ERR_WRITE_SEARCH_PERSON_LIST            631
#define ERR_WRITE_SEARCH_PERSON_CLEAR           632
#define ERR_WRITE_DISPATCH_PERSON               633
#define ERR_WRITE_THUNK_DISPATCH_PERSON         634
#define ERR_WRITE_OPERATION_PER_DAY             635
#define ERR_WRITE_THUNK_OPERATION_PER_DAY       636
#define ERR_WRITE_RETREAT_CHANGE_ARRAY          637
#define ERR_WRITE_THUNK_RETREAT_CHANGE_ARRAY    638
#define ERR_WRITE_CHECK_DRAFT_FOOD              639
#define ERR_WRITE_ATTACK_TROOP_CONDITION        640
#define ERR_WRITE_THUNK_ATTACK_TROOP_CONDITION  641
#define ERR_WRITE_ALIENATE_MIN_DAY              642
#define ERR_WRITE_THUNK_ALIENATE_MIN_DAY        643
#define ERR_WRITE_GET_DISTANCE                  644
#define ERR_WRITE_CHECK_NO_SOLDIER_BUILDING     645
#define ERR_WRITE_THUNK_CHECK_NO_SOLDIER_BUILDING 646
#define ERR_WRITE_FORCE_TROOP_LIST              647
#define ERR_WRITE_THUNK_FORCE_TROOP_LIST        648
#define ERR_WRITE_BUILDING_TOTAL_SOLDIER        649
#define ERR_WRITE_THUNK_BUILDING_TOTAL_SOLDIER  650
#define ERR_WRITE_RELAY_LAST_FORCE              651
#define ERR_WRITE_RELAY_FAILED_DISPATCH         652
#define ERR_WRITE_THUNK_RELAY_FAILED_DISPATCH   653
#define ERR_WRITE_RELAY_DISPATCH_OK             654
#define ERR_WRITE_THUNK_RELAY_DISPATCH_OK       655
#define ERR_WRITE_FAST_RELAY                    656
#define ERR_WRITE_THUNK_FAST_RELAY              657
#define ERR_WRITE_BATTLE_DISABLE_TASK           658
#define ERR_WRITE_THUNK_BATTLE_DISABLE_TASK     659
#define ERR_WRITE_CHECK_ATTACK_TROOP            660
#define ERR_WRITE_THUNK_CHECK_ATTACK_TROOP_SAVE 661
#define ERR_WRITE_THUNK_CHECK_ATTACK_TROOP_ANTI 662
#define ERR_WRITE_BEFORE_GO                     663
#define ERR_WRITE_THUNK_BEFORE_GO               664
#define ERR_WRITE_SIMPLE_AWARD                  665
#define ERR_WRITE_THUNK_SIMPLE_AWARD            666
#define ERR_WRITE_MENU_NO_DISPLAY               667
#define ERR_WRITE_THUNK_MENU_NO_DISPLAY         668
#define ERR_WRITE_ENABLE_COMMERCE               669
#define ERR_WRITE_THUNK_ENABLE_COMMERCE         670
#define ERR_WRITE_CHECK_ABUSE                   671
#define ERR_WRITE_THUNK_CHECK_ABUSE             672
#define ERR_WRITE_THUNK_CHECK_CHAOS             673
#define ERR_WRITE_BUILDING_BACKUP               674
#define ERR_WRITE_SWITCH_FOOT_HORSE             675
#define ERR_WRITE_THUNK_SWITCH_FOOT_HORSE       676
#define ERR_WRITE_ADJUST_PERSON_POS             677
#define ERR_WRITE_THUNK_ADJUST_PERSON_POS       678
#define ERR_WRITE_SAVE_TROOP_EXPENSE            679
#define ERR_WRITE_THUNK_SAVE_TROOP_EXPENSE      680
#define ERR_WRITE_MIN_DANGER_DISPATCH           681
#define ERR_WRITE_THUNK_MIN_DANGER_DISPATCH     682
#define ERR_WRITE_MAX_ANTI_TROOP                683
#define ERR_WRITE_THUNK_MAX_ANTI_TROOP          684
#define ERR_WRITE_PRE_BUILDING_SOLDIER          685
#define ERR_WRITE_THUNK_PRE_BUILDING_SOLDIER    686
#define ERR_WRITE_ENABLE_CULTIVATE              687
#define ERR_WRITE_THUNK_ENABLE_CULTIVATE        688
#define ERR_WRITE_FILTER_BUILDING_SOLDIER       689
#define ERR_WRITE_THUNK_FILTER_BUILDING_SOLDIER 690
#define ERR_WRITE_ADJUST_KILLER                 691
#define ERR_WRITE_COMMAND_ABILITY               692
#define ERR_WRITE_THUNK_COMMAND_ABILITY         693
#define ERR_WRITE_CHECK_OFFICER_MONEY           694
#define ERR_WRITE_THUNK_CHECK_OFFICER_MONEY     695
#define ERR_WRITE_JIA_XU_OFFICER                696
#define ERR_WRITE_THUNK_JIA_XU_OFFICER          697
#define ERR_WRITE_JIA_XU_BACK                   698
#define ERR_WRITE_THUNK_JIA_XU_BACK             699
#define ERR_WRITE_UNDEL_COMMAND_PERSON          700
#define ERR_WRITE_THUNK_UNDEL_COMMAND_PERSON    701
#define ERR_WRITE_THUNK_DEL_COMMAND_PERSON      702
#define ERR_WRITE_THUNK_UNDEL_INTELLIGENCE_PERSON 703
#define ERR_WRITE_THUNK_DEL_INTELLIGENCE_PERSON 704
#define ERR_WRITE_INTELLIGENCE_ABILITY          705
#define ERR_WRITE_THUNK_INTELLIGENCE_ABILITY    706
#define ERR_WRITE_DEGRADE_PERSON                707
#define ERR_WRITE_THUNK_DEGRADE_PERSON          708
#define ERR_WRITE_MOVE_IDLE_PERSON              709
#define ERR_WRITE_THUNK_MOVE_IDLE_PERSON        710
#define ERR_WRITE_STONE_STOP                    711
#define ERR_WRITE_THUNK_STONE_STOP              712
#define ERR_WRITE_CLEAR_TROOP_CUR_GOAL          713
#define ERR_WRITE_THUNK_CLEAR_TROOP_CUR_GOAL    714
#define ERR_WRITE_ARRAY_IMAGE                   715
#define ERR_WRITE_THUNK_ARRAY_IMAGE             716
#define ERR_WRITE_COMMAND_INT_ABILITY           717
#define ERR_WRITE_THUNK_COMMAND_INT_ABILITY     718
//#define ERR_WRITE_                    719
#define ERR_WRITE_TROOP_EXPERIENCE              720
#define ERR_WRITE_THUNK_TROOP_KILLER_EXPERIENCE 721
#define ERR_WRITE_THUNK_WATER_KILLER_EXPERIENCE 722
#define ERR_WRITE_MAX_PEOPLE_HEART_CMP          723
#define ERR_WRITE_THUNK_MAX_PEOPLE_HEART_CMP    724
#define ERR_WRITE_CAPTIVE_MONEY                 725
#define ERR_WRITE_THUNK_CAPTIVE_MONEY           726
#define ERR_WRITE_SEARCH_RANGE                  727
#define ERR_WRITE_THUNK_SEARCH_RANGE            728
#define ERR_WRITE_SEARCH_CONDITION              729
#define ERR_WRITE_THUNK_SEARCH_CONDITION        730
#define ERR_WRITE_SEARCH_INVITE                 731
#define ERR_WRITE_THUNK_SEARCH_INVITE           732
#define ERR_WRITE_INVITE_NEW_PERSON             733
#define ERR_WRITE_THUNK_INVITE_NEW_PERSON       734
#define ERR_WRITE_UPDATE_KILLER_DAMAGE          735
#define ERR_WRITE_THUNK_UPDATE_KILLER_DAMAGE    736
#define ERR_WRITE_BUILDING_KILLER_PERSON        737
#define ERR_WRITE_THUNK_BUILDING_KILLER_PERSON  738
#define ERR_WRITE_NOT_SURE_CAPTIVE              739
#define ERR_WRITE_THUNK_NOT_SURE_CAPTIVE        740
#define ERR_WRITE_SELECT_ATTACK_PERSON          741
#define ERR_WRITE_THUNK_SELECT_ATTACK_PERSON    742
#define ERR_WRITE_SAVE_HARBOR                   743
#define ERR_WRITE_THUNK_SAVE_HARBOR             744
#define ERR_WRITE_NEW_FORCE_SOLDIER             745
#define ERR_WRITE_THUNK_NEW_FORCE_SOLDIER       746
#define ERR_WRITE_THUNK_CHECK_TROOP_RETREAT     747
#define ERR_WRITE_THUNK_CHECK_MIN_LEFT_SOLDIER  748
#define ERR_WRITE_THUNK_CHECK_MAX_SAVE_SOLDIER  749
#define ERR_WRITE_GOTO_NPC_CITY                 750
#define ERR_WRITE_THUNK_GOTO_NPC_CITY           751
#define ERR_WRITE_GOSSIP_TO_PLAYER              752
#define ERR_WRITE_THUNK_GOSSIP_TO_PLAYER        753
#define ERR_WRITE_SUB_ANTI_TRICK                754
#define ERR_WRITE_THUNK_SUB_ANTI_TRICK          755
#define ERR_WRITE_THUNK_SUB_ANTI_TRAP           756
#define ERR_WRITE_FIGHT_TO_KILLER               757
#define ERR_WRITE_THUNK_FIGHT_TO_KILLER         758
#define ERR_WRITE_DRAFT_MIN_MONEY               759
#define ERR_WRITE_THUNK_DRAFT_MIN_MONEY         760
#define ERR_WRITE_ATTACK_MIN_MONEY              761
#define ERR_WRITE_THUNK_ATTACK_MIN_MONEY        762
#define ERR_WRITE_SAFE_ARRIVE_DAY               763
#define ERR_WRITE_CHECK_GO_ON_ATTACK            764
#define ERR_WRITE_GO_ON_ATTACK                  765
#define ERR_WRITE_ATTACK_TROOP_LIST             766
#define ERR_WRITE_NEAR_NULL_CITY                767
#define ERR_WRITE_THUNK_NEAR_NULL_CITY          768
#define ERR_WRITE_GET_PLAYER_CITY               769
#define ERR_WRITE_THUNK_GET_PLAYER_CITY         770
#define ERR_WRITE_ATTACK_NULL_BUILDING          771
#define ERR_WRITE_THUNK_ATTACK_NULL_BUILDING    772
#define ERR_WRITE_NULL_BUILDING_ARRAY           773
#define ERR_WRITE_THUNK_NULL_BUILDING_ARRAY     774
#define ERR_WRITE_ALLIE_ATTACK                  775
#define ERR_WRITE_THUNK_ALLIE_ATTACK            776
#define ERR_WRITE_ATTACK_SOURCE_CITY            777
#define ERR_WRITE_THUNK_ATTACK_SOURCE_CITY      778
#define ERR_WRITE_CIRCLE_ATTACK_BUILDING        779
#define ERR_WRITE_THUNK_CIRCLE_ATTACK_BUILDING  780
#define ERR_WRITE_SELECT_ATTACK_BUILDING        781
#define ERR_WRITE_THUNK_SELECT_ATTACK_BUILDING  782
#define ERR_WRITE_ATTACK_MIN_PERSON             783
#define ERR_WRITE_THUNK_ATTACK_MIN_PERSON       784
#define ERR_WRITE_THUNK_ATTACK_BUILDING_SOLDIER 785
#define ERR_WRITE_ADD_CITY_RELATION             786
#define ERR_WRITE_THUNK_ADD_CITY_RELATION       787
#define ERR_WRITE_BUILDING_ANTI_ATTACK_TROOP    788
#define ERR_WRITE_RESERVE_ATTACKED_BUILDING     789
#define ERR_WRITE_THUNK_RESERVE_ATTACKED_BUILDING 790
#define ERR_WRITE_DECIDE_ATTACK_OK              791
#define ERR_WRITE_THUNK_DECIDE_ATTACK_OK        792
#define ERR_WRITE_RETRY_ATTACKED_BUILDING       793
#define ERR_WRITE_THUNK_RETRY_ATTACKED_BUILDING 794
#define ERR_WRITE_MAX_ATTACK_SOLDIER            795
#define ERR_WRITE_THUNK_MAX_ATTACK_SOLDIER      796
#define ERR_WRITE_BUILDING_ON_THE_WAY           797
#define ERR_WRITE_THUNK_BUILDING_ON_THE_WAY     798
#define ERR_WRITE_LEFT_CLEVER_KILLER            799
#define ERR_WRITE_THUNK_LEFT_CLEVER_KILLER      800
#define ERR_WRITE_ADD_OFFICIAL_LOYATY           801
#define ERR_WRITE_THUNK_ADD_OFFICIAL_LOYATY     802
#define ERR_WRITE_CORRECT_NEAR_MAX_SOLDIER      803
#define ERR_WRITE_THUNK_CORRECT_NEAR_MAX_SOLDIER 804
#define ERR_WRITE_SELECT_ATTACK_ARRAY           805
#define ERR_WRITE_THUNK_SELECT_ATTACK_ARRAY     806
#define ERR_WRITE_TRANSFER_KILLER               807
#define ERR_WRITE_KILLER_TRANSFER_TABLE         808
#define ERR_WRITE_SET_NEAR_ATTACK_FLAG          809
#define ERR_WRITE_THUNK_SET_NEAR_ATTACK_FLAG    810
#define ERR_WRITE_NOT_ATTACK_NEAR_TROOP         811
#define ERR_WRITE_THUNK_NOT_ATTACK_NEAR_TROOP   812
#define ERR_WRITE_LEAGUE_FAIL                   813
#define ERR_WRITE_THUNK_LEAGUE_FAIL             814
#define ERR_WRITE_LEAGUE_SUCCEED                815
#define ERR_WRITE_THUNK_LEAGUE_SUCCEED          816
#define ERR_WRITE_SELECT_BUILD_AREA             817
#define ERR_WRITE_THUNK_SELECT_BUILD_AREA       818
#define ERR_WRITE_DECIDE_BUILD                  819
#define ERR_WRITE_THUNK_DECIDE_BUILD            820
#define ERR_WRITE_BEING_BUILD                   821
#define ERR_WRITE_THUNK_BEING_BUILD             822
#define ERR_WRITE_MAX_BUILD_MONEY               823
#define ERR_WRITE_THUNK_MAX_BUILD_MONEY         824
#define ERR_WRITE_GO_THROUGH_NEAR_BUILDING      825
#define ERR_WRITE_THUNK_GO_THROUGH_NEAR_BUILDING 826
#define ERR_WRITE_ADJUST_ATTACK_SOLDIER         827
#define ERR_WRITE_THUNK_ADJUST_ATTACK_SOLDIER   828
#define ERR_WRITE_CHECK_PERSON_KILLER_LEVEL     829
#define ERR_WRITE_THUNK_CHECK_PERSON_KILLER_LEVEL 830
#define ERR_WRITE_CHECK_WISDOM_ANTITRAP         831
#define ERR_WRITE_SELECT_WATER_WISDOM           832
#define ERR_WRITE_THUNK_SELECT_WATER_WISDOM     833
#define ERR_WRITE_ANTI_ATTACK_ANTITRAP          834
#define ERR_WRITE_THUNK_ANTI_ATTACK_ANTITRAP    835
#define ERR_WRITE_ANTI_ATTACK_WISDOM            836
#define ERR_WRITE_THUNK_ANTI_ATTACK_WISDOM      837
#define ERR_WRITE_GET_FORCE_MILITARY_POP        838
#define ERR_WRITE_DEGRADE_SNAKE_TROOP           839
#define ERR_WRITE_SELECT_TRAIN_PERSON           840
#define ERR_WRITE_THUNK_SELECT_TRAIN_PERSON     841
#define ERR_WRITE_SELECT_ATTACK_WISDOM          842
#define ERR_WRITE_THUNK_SELECT_ATTACK_WISDOM    843
#define ERR_WRITE_DISPLAY_YEAR                  844
#define ERR_WRITE_THUNK_DISPLAY_YEAR            845
#define ERR_WRITE_REFUSE_CHANGE                 846
#define ERR_WRITE_THUNK_REFUSE_CHANGE           847
#define ERR_WRITE_DRAFT_FAIL_BUG                848
#define ERR_WRITE_THUNK_DRAFT_FAIL_BUG          849
#define ERR_WRITE_DRAFT_MIN_FOOD                850
#define ERR_WRITE_THUNK_DRAFT_MIN_FOOD          851
#define ERR_WRITE_CORRECT_BUILDING_ATTACK_SOLDIER 852
#define ERR_WRITE_THUNK_CORRECT_BUILDING_ATTACK_SOLDIER 853
#define ERR_WRITE_CORRECT_GOAL_BUILDING_SOLDIER 854
#define ERR_WRITE_THUNK_CORRECT_GOAL_BUILDING_SOLDIER 855
#define ERR_WRITE_BARAM_NOT_BUILD               856
#define ERR_WRITE_THUNK_BARAM_NOT_BUILD         857
#define ERR_WRITE_SAVE_NEAR_MAX_SOLDIER         858
#define ERR_WRITE_THUNK_SAVE_NEAR_MAX_SOLDIER   859
#define ERR_WRITE_LOAD_NEAR_MAX_SOLDIER         860
#define ERR_WRITE_THUNK_LOAD_NEAR_MAX_SOLDIER   861
#define ERR_WRITE_TEST_ATTACK_GOAL_FORCE        862
#define ERR_WRITE_CHECK_MIN_DEFENCE             863
#define ERR_WRITE_THUNK_CHECK_MIN_DEFENCE       864
#define ERR_WRITE_TEST_NOT_NULL_CIYT            865
#define ERR_WRITE_THUNK_TEST_NOT_NULL_CIYT      866
#define ERR_WRITE_TEST_REGARDED_BUILDING        867
#define ERR_WRITE_REGARDED_BUILDING_ON_ATTACK   868
#define ERR_WRITE_THUNK_REGARDED_BUILDING_ON_ATTACK 869
#define ERR_WRITE_REGARDED_BUILDING_ON_ATTACK2   870
#define ERR_WRITE_THUNK_REGARDED_BUILDING_ON_ATTACK2 871
#define ERR_WRITE_REGARDED_BUILDING_ON_ATTACK3   872
#define ERR_WRITE_THUNK_REGARDED_BUILDING_ON_ATTACK3 873
#define ERR_WRITE_JUDGE_KILLER_LINKAGE           874
#define ERR_WRITE_THUNK_JUDGE_KILLER_LINKAGE     875
#define ERR_WRITE_KILLER_POWER_TO_DAMAGE         876
#define ERR_WRITE_THUNK_KILLER_POWER_TO_DAMAGE   877
#define ERR_WRITE_LINKAGE_KILLER_TO_RECORD       878
#define ERR_WRITE_THUNK_LINKAGE_KILLER_TO_RECORD 879
#define ERR_WRITE_LINKAGE_KILLER_TO_DIALOG       880
#define ERR_WRITE_THUNK_LINKAGE_KILLER_TO_DIALOG 881
#define ERR_WRITE_MAIN_FORCE_DISPATCH            882
#define ERR_WRITE_THUNK_MAIN_FORCE_DISPATCH      883
#define ERR_WRITE_UPDATE_SEIGE_POWER             884
#define ERR_WRITE_GET_ARRAY_TO_WALL              885
#define ERR_WRITE_THUNK_GET_ARRAY_TO_WALL        886
#define ERR_WRITE_GET_ARRAY_TO_GARRISON          887
#define ERR_WRITE_THUNK_GET_ARRAY_TO_GARRISON    888
#define ERR_WRITE_TEST_PLAYER_VIEW_RANGE         889
#define ERR_WRITE_CLEAR_SECOND_KILLER_PERSON     890
#define ERR_WRITE_THUNK_CLEAR_SECOND_KILLER_PERSON 891
#define ERR_WRITE_SKIP_ARRIVE_DAY                892
#define ERR_WRITE_THUNK_SKIP_ARRIVE_DAY          893
#define ERR_WRITE_ATTACK_BUILD_DATE              894
#define ERR_WRITE_MAX_BUILDING_WOUND             895
#define ERR_WRITE_THUNK_MAX_BUILDING_WOUND       896
#define ERR_WRITE_FORCE_FIGHT_TROOP              897
#define ERR_WRITE_THUNK_FORCE_FIGHT_TROOP        898
#define ERR_WRITE_CHECK_TRANSPORT_TASK           899
#define ERR_WRITE_THUNK_CHECK_TRANSPORT_TASK     900
#define ERR_WRITE_SET_BUILDING_SOLDIER_REMAINS   901
#define ERR_WRITE_THUNK_SET_BUILDING_SOLDIER_REMAINS 902
#define ERR_WRITE_GET_BUILDING_PROP              903
#define ERR_WRITE_GET_FORCE_DANGER_COEF          904
#define ERR_WRITE_INIT_TRANSPORT_BUILDING        905
#define ERR_WRITE_THUNK_INIT_TRANSPORT_BUILDING  906
#define ERR_WRITE_SELECT_TRANSPORT_SOURCE        907
#define ERR_WRITE_THUNK_SELECT_TRANSPORT_SOURCE  908
#define ERR_WRITE_SORT_TRANSPORT_SOURCE          909
#define ERR_WRITE_THUNK_SORT_TRANSPORT_SOURCE    910
#define ERR_WRITE_TRANSPORT_MATCH                911
#define ERR_WRITE_STOP_TASK_BUG                  912
#define ERR_WRITE_THUNK_STOP_TRAIN_BUG           913
#define ERR_WRITE_THUNK_STOP_COMMERCE_BUG        914
#define ERR_WRITE_THUNK_STOP_CULTIVATE_BUG       915
#define ERR_WRITE_THUNK_STOP_VISIT_BUG           916
#define ERR_WRITE_THUNK_STOP_REPAIR_BUG          917
#define ERR_WRITE_CHECK_TRANSPORT_BLOCK          918
#define ERR_WRITE_THUNK_CHECK_TRANSPORT_BLOCK    919
#define ERR_WRITE_GET_TRANSPORT_SOLDIER          920
#define ERR_WRITE_THUNK_GET_TRANSPORT_SOLDIER    921
#define ERR_WRITE_AUTO_SAVE_DOCNAME              922
#define ERR_WRITE_THUNK_AUTO_SAVE_DOCNAME        923
#define ERR_WRITE_MULTI_ALIENATE                 924
#define ERR_WRITE_THUNK_MULTI_ALIENATE           925
#define ERR_WRITE_TRY_INVITE_CAPTIVE             926
#define ERR_WRITE_THUNK_TRY_INVITE_CAPTIVE       927
#define ERR_WRITE_PHASE_ERROR_ALIENATE           928
#define ERR_WRITE_THUNK_PHASE_ERROR_ALIENATE     929
#define ERR_WRITE_PERSON_EXPERIENCE              930
#define ERR_WRITE_THUNK_PERSON_EXPERIENCE        931
#define ERR_WRITE_GET_OFFICER_TYPE               932
#define ERR_WRITE_COMMAND_OFFICER_PARA           933
#define ERR_WRITE_THUNK_COMMAND_OFFICER_PARA     934
#define ERR_WRITE_DELETE_MAX_OFFICER             935
#define ERR_WRITE_THUNK_DELETE_MAX_OFFICER       936
#define ERR_WRITE_INTELLIGENCE_OFFICER_PARA      937
#define ERR_WRITE_THUNK_INTELLIGENCE_OFFICER_PARA 938
#define ERR_WRITE_BUILDING_MAX_SOLDIER           939
#define ERR_WRITE_THUNK_BUILDING_MAX_SOLDIER     940
#define ERR_WRITE_MAX_PEOPLE_HEART_PUSH          941
#define ERR_WRITE_THUNK_MAX_PEOPLE_HEART_PUSH    942
#define ERR_WRITE_MAX_PEOPLE_HEART_MOV           943
#define ERR_WRITE_THUNK_MAX_PEOPLE_HEART_MOV     944
#define ERR_WRITE_MAX_PEOPLE_HEART_BASIC         945
#define ERR_WRITE_THUNK_MAX_PEOPLE_HEART_BASIC   946
#define ERR_WRITE_MAX_SOLDIER_PUSH               947
#define ERR_WRITE_THUNK_MAX_SOLDIER_PUSH         948
#define ERR_WRITE_MAX_SOLDIER_CMP                949
#define ERR_WRITE_THUNK_MAX_SOLDIER_CMP          950
#define ERR_WRITE_PLAYER_SUBFORCE_CONTROL        951
#define ERR_WRITE_DYNAMIC_ADD_PROFICIENCY        952
#define ERR_WRITE_THUNK_DYNAMIC_ADD_PROFICIENCY  953
#define ERR_WRITE_LEARN_TO_PHASE2                954
#define ERR_WRITE_THUNK_LEARN_TO_PHASE2          955
#define ERR_WRITE_ATTACK_TROOP_SOLDIER           956
#define ERR_WRITE_THUNK_ATTACK_TROOP_SOLDIER     957
#define ERR_WRITE_ATTACK_TROOP_SOLDIER2          958
#define ERR_WRITE_THUNK_ATTACK_TROOP_SOLDIER2    959
#define ERR_WRITE_PERSON_CHAR_NUM                960
#define ERR_WRITE_THUNK_PERSON_CHAR_NUM          961
#define ERR_WRITE_ATTACK_RATIO_DOOR              962
#define ERR_WRITE_THUNK_ATTACK_RATIO_DOOR        963
#define ERR_WRITE_TROOP_AT_GOOD_PLACE            964
#define ERR_WRITE_THUNK_TROOP_AT_GOOD_PLACE      965
#define ERR_WRITE_PRE_BUILDING_SOLDIER2          966
#define ERR_WRITE_ATTACK_TROOP_RETREAT           967
#define ERR_WRITE_TROOP_RETREAT                  968
#define ERR_WRITE_THUNK_TROOP_RETREAT            969
#define ERR_WRITE_SECOND_KILLER                  970
#define ERR_WRITE_THUNK_SECOND_KILLER            971
#define ERR_WRITE_SECOND_KILLER_INTERVAL         972
#define ERR_WRITE_THUNK_SECOND_KILLER_INTERVAL   973
#define ERR_WRITE_GET_PERSON_QUOTA               974
#define ERR_WRITE_THUNK_GET_PERSON_QUOTA         975
#define ERR_WRITE_COORDINATE_REQUEST             976
#define ERR_WRITE_THUNK_COORDINATE_REQUEST       977
#define ERR_WRITE_GET_ANTI_ATTACK_GARRISON       978
#define ERR_WRITE_KILLER_ARRAY_COEF              979
#define ERR_WRITE_DELETE_BIG_PERSON              980
#define ERR_WRITE_GET_ARRAY_ATTACK_RANGE         981
#define ERR_WRITE_THUNK_GET_ARRAY_ATTACK_RANGE   982
#define ERR_WRITE_GET_NEAR_BUILDING_SOLDIER      983
#define ERR_WRITE_DISPLAY_TROOP_CONDITION        984
#define ERR_WRITE_THUNK_DISPLAY_TROOP_CONDITION  985
#define ERR_WRITE_COMPARE_PERSON_NAME            986
#define ERR_WRITE_CHECK_PLAYER_VIEW_RANGE        987
#define ERR_WRITE_PERSON_SMALL_DIALOG            988
#define ERR_WRITE_THUNK_PERSON_SMALL_DIALOG      989
#define ERR_WRITE_TROOP_AT_SMALL_MAP             990
#define ERR_WRITE_THUNK_TROOP_AT_SMALL_MAP       991
#define ERR_WRITE_BLOCK_PROP                     992
#define ERR_WRITE_THUNK_BLOCK_PROP               993
#define ERR_WRITE_ADJUST_ATTACK_ARRAY            994
#define ERR_WRITE_GET_ARRAY_KILLER_POWER         995
#define ERR_WRITE_ADJUST_TROOP_GO_DATE           996
#define ERR_WRITE_CHAOS_LINKAGE_FLAG             997
#define ERR_WRITE_THUNK_CHAOS_LINKAGE_FLAG       998
#define ERR_WRITE_THUNK_TRAP_LINKAGE_FLAG        999
#define ERR_WRITE_THUNK_ATTACK_HEART_LINKAGE_FLAG 1000
#define ERR_WRITE_ALL_STRONG_FORCE               1001
#define ERR_WRITE_THUNK_ALL_STRONG_FORCE         1002
#define ERR_WRITE_JOURNEY_GOAL_TROOP             1003
#define ERR_WRITE_THUNK_JOURNEY_GOAL_TROOP       1004
#define ERR_WRITE_CHECK_LONG_RANGE_ARRAY         1005
#define ERR_WRITE_CHANGE_TROOP_COMMAND           1006
#define ERR_WRITE_THUNK_CHANGE_TROOP_COMMAND     1007
#define ERR_WRITE_KILLER_DIRVE_PROP              1008
#define ERR_WRITE_THUNK_KILLER_DIRVE_PROP        1009
#define ERR_WRITE_MOVE_GUARD_TROOP               1010
#define ERR_WRITE_THUNK_MOVE_GUARD_TROOP         1011
#define ERR_WRITE_USE_BARAM_ARRAY                1012
#define ERR_WRITE_DIRECT_BIG_ANIMATION           1013
#define ERR_WRITE_THUNK_DIRECT_BIG_ANIMATION     1014
#define ERR_WRITE_STRENGTH_KILLER_BIG_ANIMATION  1015
#define ERR_WRITE_THUNK_STRENGTH_KILLER_BIG_ANIMATION 1016
#define ERR_WRITE_SOLDIER_COMMAND_KILLER         1017
#define ERR_WRITE_WEAKEN_LONG_RANGE_KILLER       1018
#define ERR_WRITE_UPDATE_CAPTIVE_PROP            1019
#define ERR_WRITE_THUNK_UPDATE_CAPTIVE_PROP      1020
#define ERR_WRITE_CONTROL_MARCH_TROOP            1021
#define ERR_WRITE_THUNK_CONTROL_MARCH_TROOP      1022
#define ERR_WRITE_YEAR_TABLE_INFO                1023
#define ERR_WRITE_THUNK_YEAR_TABLE_INFO          1024
#define ERR_WRITE_MONTH_TABLE_INFO               1025
#define ERR_WRITE_THUNK_MONTH_TABLE_INFO         1026
#define ERR_WRITE_ROB_FOOD                       1027
#define ERR_WRITE_THUNK_ROB_FOOD                 1028
#define ERR_WRITE_KILLER_TO_BUILDING             1029
#define ERR_WRITE_THUNK_KILLER_TO_BUILDING       1030
#define ERR_WRITE_WATER_KILLER_PROP              1031
#define ERR_WRITE_THUNK_WATER_KILLER_PROP        1032
#define ERR_WRITE_GET_INFO_DISTANCE              1033
#define ERR_WRITE_GET_TROOP_VIEW_STATE           1034
#define ERR_WRITE_FALSE_GOAL_TROOP               1035
#define ERR_WRITE_THUNK_FALSE_GOAL_TROOP         1036
#define ERR_WRITE_THUNK_DISORDER_GOAL_TROOP      1037
#define ERR_WRITE_DISPLAY_BUILDING_CONDITION     1038
#define ERR_WRITE_THUNK_DISPLAY_BUILDING_CONDITION 1039
#define ERR_WRITE_HIDE_DUTY_PERSON_NUM           1040
#define ERR_WRITE_THUNK_HIDE_DUTY_PERSON_NUM     1041
#define ERR_WRITE_THUNK_HIDE_DUTY_PERSON_NUM2    1042
#define ERR_WRITE_HIDE_INFO_MENU                 1043
#define ERR_WRITE_THUNK_HIDE_INFO_MENU           1044
#define ERR_WRITE_DAMAGE_NUMBER_DOWN             1045
#define ERR_WRITE_THUNK_DAMAGE_NUMBER_DOWN       1046
#define ERR_WRITE_GET_PLAYER_FORCE               1047
#define ERR_WRITE_HIDE_DOWN_STONE                1048
#define ERR_WRITE_THUNK_HIDE_DOWN_STONE          1049
#define ERR_WRITE_HIDE_SPECIAL_STATE             1050
#define ERR_WRITE_THUNK_HIDE_SPECIAL_STATE       1051
#define ERR_WRITE_GET_BUILDING_VIEW_STATE        1052
#define ERR_WRITE_HIDE_CITY_MORALE               1053
#define ERR_WRITE_THUNK_HIDE_CITY_MORALE         1054
#define ERR_WRITE_HIDE_CITY_INCOME               1055
#define ERR_WRITE_THUNK_HIDE_CITY_INCOME         1056
#define ERR_WRITE_THUNK_HIDE_CITY_HARVEST        1057
#define ERR_WRITE_RETREAT_BUILDING_CONDITION     1058
#define ERR_WRITE_THUNK_RETREAT_BUILDING_CONDITION 1059
#define ERR_WRITE_ALLOC_FREE_TROOP               1060
#define ERR_WRITE_THUNK_ALLOC_FREE_TROOP         1061
#define ERR_WRITE_COUNSELOR_REPORT_PROP          1062
#define ERR_WRITE_THUNK_COUNSELOR_REPORT_PROP    1063
#define ERR_WRITE_KILLER_CHECK_BUG               1064
#define ERR_WRITE_THUNK_KILLER_CHECK_BUG         1065
#define ERR_WRITE_BUILD_ARRIVE_DAY               1066
#define ERR_WRITE_THUNK_BUILD_ARRIVE_DAY         1067
#define ERR_WRITE_JUDGE_ATTACK_BUILD             1068
#define ERR_WRITE_THUNK_JUDGE_ATTACK_BUILD       1069
#define ERR_WRITE_GET_BUILD_SOLDIER              1070
#define ERR_WRITE_RETREAT_SOLDIER_TROOP          1071
#define ERR_WRITE_ATTACK_PLAYER_BUILD            1072
#define ERR_WRITE_MAX_BUSINESS                   1073
#define ERR_WRITE_THUNK_MAX_BUSINESS             1074
#define ERR_WRITE_INCOME                         1075
#define ERR_WRITE_THUNK_INCOME                   1076
#define ERR_WRITE_HARVEST                        1077
#define ERR_WRITE_THUNK_HARVEST                  1078
#define ERR_WRITE_CITY_POPULATION_COEF               1079
#define ERR_WRITE_THUNK_CITY_POPULATION_COEF        1080
#define ERR_WRITE_GET_FORCE_STRENGTH             1081
#define ERR_WRITE_GOAL_FORCE_PARA                1082
#define ERR_WRITE_THUNK_GOAL_FORCE_PARA          1083
#define ERR_WRITE_ADD_CITY_DRAFT                 1084
#define ERR_WRITE_THUNK_ADD_CITY_DRAFT           1085
#define ERR_WRITE_PHASE_ERROR_INVITE             1086
#define ERR_WRITE_THUNK_PHASE_ERROR_INVITE       1087
#define ERR_WRITE_PLAYER_AUTO_PROCESS            1088
#define ERR_WRITE_THUNK_PLAYER_AUTO_PROCESS      1089
#define ERR_WRITE_AUTO_PROCESS_TASK              1090
#define ERR_WRITE_THUNK_AUTO_PROCESS_TASK        1091
#define ERR_WRITE_GET_LEAGUE_GOAL                1092
#define ERR_WRITE_THUNK_GET_LEAGUE_GOAL          1093
#define ERR_WRITE_FIGHT_SUB_INCOME               1094
#define ERR_WRITE_THUNK_FIGHT_SUB_INCOME         1095
#define ERR_WRITE_CHECK_MENACE_TROOP             1096
#define ERR_WRITE_LEADER_INSPIRE                 1097
#define ERR_WRITE_THUNK_LEADER_INSPIRE           1098
#define ERR_WRITE_KILL_SUB_PRESTIGE              1099
#define ERR_WRITE_THUNK_KILL_SUB_PRESTIGE        1100
#define ERR_WRITE_TRAIN_BASIC_ABILITY            1101
#define ERR_WRITE_THUNK_TRAIN_BASIC_ABILITY      1102
#define ERR_WRITE_ABILITY_KILLER_PROP            1103
#define ERR_WRITE_THUNK_ABILITY_KILLER_PROP      1104
#define ERR_WRITE_SET_MAX_CAPTIVE                1105
#define ERR_WRITE_THUNK_SET_MAX_CAPTIVE          1106
#define ERR_WRITE_GET_MAX_CAPTIVE                1107
#define ERR_WRITE_THUNK_GET_MAX_CAPTIVE          1108
#define ERR_WRITE_CAPTIVE_MONEY_2                      1109
#define ERR_WRITE_THUNK_CAPTIVE_MONEY_2         1110
#define ERR_WRITE_BLOCK_ARRAY_NUM                    1111
#define ERR_WRITE_BARBARIAN_NOT_DISAPPEAR      1112
#define ERR_WRITE_AUTO_ADJUST_KILLER                    1113
#define ERR_WRITE_THUNK_AUTO_ADJUST_KILLER        1114
#define ERR_WRITE_ADD_WATER_KILLER        1115
#define ERR_WRITE_THUNK_ADD_WATER_KILLER        1116
#define ERR_WRITE_ENABLE_WATER_KILLER        1117
#define ERR_WRITE_THUNK_ENABLE_WATER_KILLER        1118
#define ERR_WRITE_THUNK_SELECT_ATTACK_SHIP        1119
#define ERR_WRITE_ADD_KILLER_JIANYU                       1120
#define ERR_WRITE_DISABLE_KILLER_JIANLAN               1121
#define ERR_WRITE_NOT_DISPLAY_SLASH                     1122
#define ERR_WRITE_NOT_DISPLAY_EXCHANGE              1123
#define ERR_WRITE_SHOW_CITY_DRAFT                        1124
#define ERR_WRITE_THUNK_SHOW_CITY_DRAFT            1125
#define ERR_WRITE_INVESTMENT                                  1126
#define ERR_WRITE_THUNK_INVESTMENT                     1127
#define ERR_WRITE_HEART_ATTACK_DAMAGE_1        1128
#define ERR_WRITE_THUNK_HEART_ATTACK_DAMAGE_1   1129
#define ERR_WRITE_HEART_ATTACK_DAMAGE_2        1130
#define ERR_WRITE_THUNK_HEART_ATTACK_DAMAGE_2   1131
#define ERR_WRITE_DAMAGE_RECORD                    1132
#define ERR_WRITE_THUNK_INTELLIGENCE_DAMAGE_RECORD      1133
#define ERR_WRITE_THUNK_STRENGTH_DAMAGE_RECORD       1135
#define ERR_WRITE_THUNK_SKIP_CONTAINED_DIALOG   1136
#define ERR_WRITE_SET_TROOP_INDEX                    1137
#define ERR_WRITE_THUNK_SET_TROOP_INDEX        1138
#define ERR_WRITE_TROOP_INDEX                    1139
#define ERR_WRITE_THUNK_TROOP_INDEX        1140
#define ERR_WRITE_TROOP_ADVISE                   1141
#define ERR_WRITE_THUNK_TROOP_ADVISE        1142
#define ERR_WRITE_GET_TROOP_INDEX                  1143
#define ERR_WRITE_THUNK_GET_TROOP_INDEX        1144
#define ERR_WRITE_SUBFORCE_CONTROL                 1145
#define ERR_WRITE_FORECAST_MAX_FOOD                 1146
#define ERR_WRITE_DIALOG_MAX_FOOD                1147
#define ERR_WRITE_ENABLE_CITY_POPULATION_COEF     1148